package io.fft.flight.modules.flight.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.fft.flight.common.service.impl.CrudServiceImpl;
import io.fft.flight.modules.flight.dto.RefundDTO;
import io.fft.flight.modules.flight.entity.RefundEntity;
import io.fft.flight.modules.flight.service.RefundService;
import io.fft.flight.modules.flight.dao.RefundDao;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 用户订单退改
 *
 * @author likailun kellenli30541@gmail.com
 * @since 1.0.0 2023-06-20
 */
@Service
public class RefundServiceImpl extends CrudServiceImpl<RefundDao, RefundEntity, RefundDTO> implements RefundService {

    @Override
    public QueryWrapper<RefundEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<RefundEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}